package ntd.util.frame.task.handle.fm.bo;

import cn.hutool.db.Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataItemTempBO {

    private String code;
    private String val;
    private String name;
    private String date;
    private String unit;
    private Boolean dataTag = false;

    public static DataItemTempBO transform(Entity entity) {
        DataItemTempBO dataItemTempBO = new DataItemTempBO();
        dataItemTempBO.setCode(entity.getStr("factor_code"));
        dataItemTempBO.setVal(entity.getStr("factor_val"));
        return dataItemTempBO;
    }
}
